home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Topik / Topik - Disk 37 - Games 3 (19xx)(Topik Public Domain)(PD)[WB].zip / Topik - Disk 37 - Games 3 (19xx)(Topik Public Domain)(PD)[WB].adf / RUMMY / SOURCE / carddecl.c.pp / carddecl.c
C/C++ Source or Header  |  1991-02-24  |  52KB  |  1,361 lines

  1. /* CARDDECL.C
  2.  * This file contains the image structures for the cards. When the
  3.  * declarations in this file are correct, the file cards.c will be added
  4.  * to the front, and externcards.h will no longer be needed. This will
  5.  * then be a separate module to be linked with the program.
  6.  */
  7.  
  8. #include    <stdlib.h>
  9. #include    <intuition/intuition.h>
  10. #include    "defns.h"
  11.  
  12. #define    TLNX    5
  13. #define    TLNY    3
  14. #define TLSX    4
  15. #define    TLSY    11
  16. #define    BRSX    52
  17. #define    BRSY    29
  18. #define    BRNX    52
  19. #define    BRNY    38
  20. #define    P1X    15
  21. #define    P1Y    6
  22. #define    P2X    39
  23. #define    P2Y    6
  24. #define    P3X    15
  25. #define    P3Y    15
  26. #define    P4X    39
  27. #define    P4Y    15
  28. #define    P5X    15
  29. #define    P5Y    25
  30. #define    P6X    39
  31. #define    P6Y    25
  32. #define    P7X    15
  33. #define    P7Y    34
  34. #define    P8X    39
  35. #define    P8Y    34
  36. #define    P9X    15
  37. #define    P9Y    20
  38. #define    P10X    39
  39. #define    P10Y    20
  40. #define    P11X    27
  41. #define    P11Y    20
  42. #define    P12X    27
  43. #define    P12Y    11
  44. #define    P13X    27
  45. #define    P13Y    29
  46. #define    P14X    27
  47. #define    P14Y    6
  48. #define    P15X    27
  49. #define    P15Y    34
  50. #define    PICX    14
  51. #define    PICY    5
  52.  
  53. /* graphics for player vertical player ids */
  54. USHORT    chip    plr1gfx[] =
  55. {
  56.     0x1004,0x1004,0x0154,0x0154,0x0154,0x0154,0x0104,0x0088,
  57.     0x0000,0x0000,0x1004,0x1004,0x0000,0x0000,0x0900,0x10a0,
  58.     0x16a0,0x16a0,0x16a0,0x1020,0x1040,0x0000,0x5820,0xb020,
  59.     0xb400,0xb400,0xb400,0x8020,0x4020,0x0000,0x0840,0x1020,
  60.     0x16a0,0x16a0,0x16a0,0x1220,0x0a40,0x0000,0x1020,0x1020,
  61.     0x0140,0x00a0,0x00a0,0x00a0,0x00a0,0x0140,0x0000,0x0000,
  62.     0x0050,0x1004,0x1004,0x0000,0x0000,0x0000,0x0000,0x0ff8,
  63.     0x0ff8,0x0088,0x0088,0x0088,0x0088,0x00f8,0x0070,0x0000,
  64.     0x0000,0x0ff8,0x0ff8,0x0000,0x0000,0x0600,0x0f40,0x0940,
  65.     0x0940,0x0940,0x0fc0,0x0f80,0x0000,0x27c0,0x4fc0,0x4800,
  66.     0x4800,0x4800,0x7fc0,0x3fc0,0x0000,0x0780,0x0fc0,0x0940,
  67.     0x0940,0x0940,0x0dc0,0x0580,0x0000,0x0fc0,0x0fc0,0x0080,
  68.     0x0040,0x0040,0x0040,0x0040,0x0080,0x0000,0x0000,0x0020,
  69.     0x0ff8,0x0ff8,0x0000,0x0000,0x0000,0x0000,0x2002,0x2002,
  70.     0x0222,0x0222,0x0222,0x0222,0x0202,0x0104,0x0000,0x0000,
  71.     0x2002,0x2002,0x0000,0x0000,0x1080,0x2010,0x2010,0x2010,
  72.     0x2010,0x2010,0x2020,0x0000,0x8010,0x0010,0x0200,0x0200,
  73.     0x0200,0x0010,0x8010,0x0000,0x1020,0x2010,0x2010,0x2010,
  74.     0x2010,0x2010,0x1020,0x0000,0x2010,0x2010,0x0220,0x0110,
  75.     0x0110,0x0110,0x0110,0x0220,0x0000,0x0000,0x0088,0x2002,
  76.     0x2002,0x0000,0x0000,0x0000,0x0000
  77. };
  78. USHORT    chip    plr2gfx[] =
  79. {
  80.     0x1004,0x1004,0x0154,0x0154,0x0154,0x0154,0x0104,0x0088,
  81.     0x0000,0x0000,0x1004,0x1004,0x0000,0x0000,0x0900,0x10a0,
  82.     0x16a0,0x16a0,0x16a0,0x1020,0x1040,0x0000,0x5820,0xb020,
  83.     0xb400,0xb400,0xb400,0x8020,0x4020,0x0000,0x0840,0x1020,
  84.     0x16a0,0x16a0,0x16a0,0x1220,0x0a40,0x0000,0x1020,0x1020,
  85.     0x0140,0x00a0,0x00a0,0x00a0,0x00a0,0x0140,0x0000,0x1428,
  86.     0x1214,0x1114,0x1494,0x1654,0x1524,0x1488,0x0050,0x0ff8,
  87.     0x0ff8,0x0088,0x0088,0x0088,0x0088,0x00f8,0x0070,0x0000,
  88.     0x0000,0x0ff8,0x0ff8,0x0000,0x0000,0x0600,0x0f40,0x0940,
  89.     0x0940,0x0940,0x0fc0,0x0f80,0x0000,0x27c0,0x4fc0,0x4800,
  90.     0x4800,0x4800,0x7fc0,0x3fc0,0x0000,0x0780,0x0fc0,0x0940,
  91.     0x0940,0x0940,0x0dc0,0x0580,0x0000,0x0fc0,0x0fc0,0x0080,
  92.     0x0040,0x0040,0x0040,0x0040,0x0080,0x0000,0x0810,0x0c08,
  93.     0x0e08,0x0b08,0x0988,0x08d8,0x0870,0x0020,0x2002,0x2002,
  94.     0x0222,0x0222,0x0222,0x0222,0x0202,0x0104,0x0000,0x0000,
  95.     0x2002,0x2002,0x0000,0x0000,0x1080,0x2010,0x2010,0x2010,
  96.     0x2010,0x2010,0x2020,0x0000,0x8010,0x0010,0x0200,0x0200,
  97.     0x0200,0x0010,0x8010,0x0000,0x1020,0x2010,0x2010,0x2010,
  98.     0x2010,0x2010,0x1020,0x0000,0x2010,0x2010,0x0220,0x0110,
  99.     0x0110,0x0110,0x0110,0x0220,0x0000,0x2244,0x2122,0x20a2,
  100.     0x2062,0x2022,0x2202,0x2304,0x0088
  101. };
  102. USHORT    chip    plr3gfx[] =
  103. {
  104.     0x1004,0x1004,0x0154,0x0154,0x0154,0x0154,0x0104,0x0088,
  105.     0x0000,0x0000,0x1004,0x1004,0x0000,0x0000,0x0900,0x10a0,
  106.     0x16a0,0x16a0,0x16a0,0x1020,0x1040,0x0000,0x5820,0xb020,
  107.     0xb400,0xb400,0xb400,0x8020,0x4020,0x0000,0x0840,0x1020,
  108.     0x16a0,0x16a0,0x16a0,0x1220,0x0a40,0x0000,0x1020,0x1020,
  109.     0x0140,0x00a0,0x00a0,0x00a0,0x00a0,0x0140,0x0000,0x1414,
  110.     0x1414,0x14b4,0x14b4,0x14b4,0x1004,0x0848,0x0000,0x0ff8,
  111.     0x0ff8,0x0088,0x0088,0x0088,0x0088,0x00f8,0x0070,0x0000,
  112.     0x0000,0x0ff8,0x0ff8,0x0000,0x0000,0x0600,0x0f40,0x0940,
  113.     0x0940,0x0940,0x0fc0,0x0f80,0x0000,0x27c0,0x4fc0,0x4800,
  114.     0x4800,0x4800,0x7fc0,0x3fc0,0x0000,0x0780,0x0fc0,0x0940,
  115.     0x0940,0x0940,0x0dc0,0x0580,0x0000,0x0fc0,0x0fc0,0x0080,
  116.     0x0040,0x0040,0x0040,0x0040,0x0080,0x0000,0x0808,0x0808,
  117.     0x0848,0x0848,0x0848,0x0ff8,0x07b0,0x0000,0x2002,0x2002,
  118.     0x0222,0x0222,0x0222,0x0222,0x0202,0x0104,0x0000,0x0000,
  119.     0x2002,0x2002,0x0000,0x0000,0x1080,0x2010,0x2010,0x2010,
  120.     0x2010,0x2010,0x2020,0x0000,0x8010,0x0010,0x0200,0x0200,
  121.     0x0200,0x0010,0x8010,0x0000,0x1020,0x2010,0x2010,0x2010,
  122.     0x2010,0x2010,0x1020,0x0000,0x2010,0x2010,0x0220,0x0110,
  123.     0x0110,0x0110,0x0110,0x0220,0x0000,0x2222,0x2222,0x2302,
  124.     0x2302,0x2302,0x2002,0x1004,0x0000
  125. };
  126. struct    Image    plrids[] =    /*player ids*/
  127. {
  128.     { 335,P1DY,15,55,3, plr1gfx, 7,0, &plrids[1] },
  129.     { 335,P2DY,15,55,3, plr2gfx, 7,0, &plrids[2] },
  130.     { 335,P3DY,15,55,3, plr3gfx, 7,0, NULL }
  131. };
  132.  
  133.  
  134. /* graphics data for card symbols, numbers etc. */
  135. USHORT
  136. chip    blacka[]    = { 0x3000,0x4800,0x8400,0xfc00,0x8400,0x8400,0x8400 },
  137. chip    black2[]    = { 0x7800,0x8400,0x0800,0x1000,0x2000,0x4000,0xfc00 },
  138. chip    black3[]    = { 0xfc00,0x0800,0x1000,0x3c00,0x0400,0x0400,0xf800 },
  139. chip    black4[]    = { 0x1800,0x2800,0x4800,0x8800,0xfc00,0x0800,0x0800 },
  140. chip    black5[]    = { 0xfc00,0x8000,0xf000,0x0800,0x0400,0x0800,0xf000 },
  141. chip    black6[]    = { 0x3800,0x4000,0x8000,0xf800,0x8400,0x8400,0x7800 },
  142. chip    black7[]    = { 0xfc00,0x0400,0x0800,0x7c00,0x1000,0x1000,0x2000 },
  143. chip    black8[]    = { 0x7800,0x8400,0x8400,0x7800,0x8400,0x8400,0x7800 },
  144. chip    black9[]    = { 0x7800,0x8400,0x8400,0x7c00,0x0400,0x0800,0x3000 },
  145. chip    black10[]    = { 0x2300,0xe480,0x2480,0x2480,0x2480,0x2480,0xf300 },
  146. chip    blackj[]    = { 0x7e00,0x0800,0x0800,0x0800,0x0800,0x8800,0x7000 },
  147. chip    blackq[]    = { 0x7800,0x8400,0x8400,0xb400,0x9c00,0x8c00,0x7a00 },
  148. chip    blackk[]    = { 0x8c00,0x9000,0xa000,0xc000,0xa000,0x9000,0x8c00 },
  149. chip    iblacka[]    = { 0x8400,0x8400,0x8400,0xfc00,0x8400,0x4800,0x3000 },
  150. chip    iblack2[]    = { 0xfc00,0x0800,0x1000,0x2000,0x4000,0x8400,0x7800 },
  151. chip    iblack3[]    = { 0x7c00,0x8000,0x8000,0xf000,0x2000,0x4000,0xfc00 },
  152. chip    iblack4[]    = { 0x4000,0x4000,0xfc00,0x4400,0x4800,0x5000,0x6000 },
  153. chip    iblack5[]    = { 0x3c00,0x4000,0x8000,0x4000,0x3c00,0x0400,0xfc00 },
  154. chip    iblack6[]    = { 0x7800,0x8400,0x8400,0x7c00,0x0400,0x0800,0x7000 },
  155. chip    iblack7[]    = { 0x1000,0x2000,0x2000,0xf800,0x4000,0x8000,0xfc00 },
  156. chip    iblack8[]    = { 0x7800,0x8400,0x8400,0x7800,0x8400,0x8400,0x7800 },
  157. chip    iblack9[]    = { 0x3000,0x4000,0x8000,0xf800,0x8400,0x8400,0x7800 },
  158. chip    iblack10[]    = { 0x6780,0x9200,0x9200,0x9200,0x9200,0x9380,0x6200 },
  159. chip    iblackj[]    = { 0x1c00,0x2200,0x2000,0x2000,0x2000,0x2000,0xfc00 },
  160. chip    iblackq[]    = { 0xbc00,0x6200,0x7200,0x5a00,0x4200,0x4200,0x3c00 },
  161. chip    iblackk[]    = { 0xc400,0x2400,0x1400,0x0c00,0x1400,0x2400,0xc400 },
  162. chip    ireda[]     = {    0x7800,0x7800,0x7800,0x0000,0x7800,0xb400,0xcc00,0x8400,
  163.         0x8400,0x8400,0xfc00,0x8400,0x4800,0x3000 },
  164. chip    ired2[]     = {    0x0000,0xf400,0xec00,0xdc00,0xbc00,0x7800,0x8400,0xfc00,
  165.         0x0800,0x1000,0x2000,0x4000,0x8400,0x7800 },
  166. chip    ired3[]     = {    0x8000,0x7c00,0x7c00,0x0c00,0xdc00,0xbc00,0x0000,0x7c00,
  167.         0x8000,0x8000,0xf000,0x2000,0x4000,0xfc00 },
  168. chip    ired4[]     = {    0xbc00,0xbc00,0x0000,0xb800,0xb400,0xac00,0x9c00,0x4000,
  169.         0x4000,0xfc00,0x4400,0x4800,0x5000,0x6000 },
  170. chip    ired5[]     = {    0xc000,0xbc00,0x7c00,0xbc00,0xc000,0xf800,0x0000,0x3c00,
  171.         0x4000,0x8000,0x4000,0x3c00,0x0400,0xfc00 },
  172. chip    ired6[]     = {    0x8400,0x7800,0x7800,0x8000,0xf800,0xf400,0x8c00,0x7800,
  173.         0x8400,0x8400,0x7c00,0x0400,0x0800,0x7000 },
  174. chip    ired7[]     = {    0xec00,0xdc00,0xdc00,0x0400,0xbc00,0x7c00,0x0000,0x1000,
  175.         0x2000,0x2000,0xf800,0x4000,0x8000,0xfc00 },
  176. chip    ired8[]     = {    0x8400,0x7800,0x7800,0x8400,0x7800,0x7800,0x8400,0x7800,
  177.         0x8400,0x8400,0x7800,0x8400,0x8400,0x7800 },
  178. chip    ired9[]     = {    0xcc00,0xbc00,0x7c00,0x0400,0x7800,0x7800,0x8400,0x3000,
  179.         0x4000,0x8000,0xf800,0x8400,0x8400,0x7800 },
  180. chip    ired10[]     = {    0x9800,0x6d80,0x6d80,0x6d80,0x6d80,0x6c00,0x9d80,0x6780,
  181.         0x9200,0x9200,0x9200,0x9200,0x9380,0x6200 },
  182. chip    iredj[]     = {    0xe200,0xdc00,0xde00,0xde00,0xde00,0xde00,0x0200,0x1c00,
  183.         0x2200,0x2000,0x2000,0x2000,0x2000,0xfc00 },
  184. chip    iredq[]     = {    0x4200,0x9c00,0x8c00,0xa400,0xbc00,0xbc00,0xc200,0xbc00,
  185.         0x6200,0x7200,0x5a00,0x4200,0x4200,0x3c00 },
  186. chip    iredk[]     = {    0x3800,0xd800,0xe800,0xf000,0xe800,0xd800,0x3800,0xc400,
  187.         0x2400,0x1400,0x0c00,0x1400,0x2400,0xc400 },
  188. chip    reda[]     = {    0xcc00,0xb400,0x7800,0x0000,0x7800,0x7800,0x7800,0x3000,
  189.         0x4800,0x8400,0xfc00,0x8400,0x8400,0x8400 },
  190. chip    red2[]     = {    0x8400,0x7800,0xf400,0xec00,0xdc00,0xbc00,0x0000,0x7800,
  191.         0x8400,0x0800,0x1000,0x2000,0x4000,0xfc00 },
  192. chip    red3[]     = {    0x0000,0xf400,0xec00,0xc000,0xf800,0xf800,0x0400,0xfc00,
  193.         0x0800,0x1000,0x3c00,0x0400,0x0400,0xf800 },
  194. chip    red4[]     = {    0xe400,0xd400,0xb400,0x7400,0x0000,0xf400,0xf400,0x1800,
  195.         0x2800,0x4800,0x8800,0xfc00,0x0800,0x0800 },
  196. chip    red5[]     = {    0x0000,0x7c00,0x0c00,0xf400,0xf800,0xf400,0x0c00,0xfc00,
  197.         0x8000,0xf000,0x0800,0x0400,0x0800,0xf000 },
  198. chip    red6[]     = {    0xc400,0xbc00,0x7c00,0x0400,0x7800,0x7800,0x8400,0x3800,
  199.         0x4000,0x8000,0xf800,0x8400,0x8400,0x7800 },
  200. chip    red7[]     = {    0x0000,0xf800,0xf400,0x8000,0xec00,0xec00,0xdc00,0xfc00,
  201.         0x0400,0x0800,0x7c00,0x1000,0x1000,0x2000 },
  202. chip    red8[]     = {    0x8400,0x7800,0x7800,0x8400,0x7800,0x7800,0x8400,0x7800,
  203.         0x8400,0x8400,0x7800,0x8400,0x8400,0x7800 },
  204. chip    red9[]     = {    0x8400,0x7800,0x7800,0x8000,0xf800,0xf400,0xcc00,0x7800,
  205.         0x8400,0x8400,0x7c00,0x0400,0x0800,0x3000 },
  206. chip    red10[]    = {    0xdc80,0x1b00,0xdb00,0xdb00,0xdb00,0xdb00,0x0c80,0x2300,
  207.         0xe480,0x2480,0x2480,0x2480,0x2480,0xf300 },
  208. chip    redj[]     = {    0x8000,0xf600,0xf600,0xf600,0xf600,0x7600,0x8e00,0x7e00,
  209.         0x0800,0x0800,0x0800,0x0800,0x8800,0x7000 },
  210. chip    redq[]     = {    0x8600,0x7a00,0x7a00,0x4a00,0x6200,0x7200,0x8400,0x7800,
  211.         0x8400,0x8400,0xb400,0x9c00,0x8c00,0x7a00 },
  212. chip    redk[]     = {    0x7000,0x6c00,0x5c00,0x3c00,0x5c00,0x6c00,0x7000,0x8c00,
  213.         0x9000,0xa000,0xc000,0xa000,0x9000,0x8c00 },
  214. chip    club[]     = {    0x0800,0x1c00,0x1c00,0x6b00,0xff80,0x6b00,0x0800,0x3e00 }, 
  215. chip    diamond[]     = {    0xee00,0xc600,0x8200,0x0000,0x0000,0x8200,0xc600,0xee00,
  216.         0x1000,0x3800,0x7c00,0xfe00,0xfe00,0x7c00,0x3800,0x1000 },
  217. chip    heart[]     = {    0x9c80,0x0800,0x0000,0x0000,0x8080,0xc180,0xe380,0xf780,
  218.         0x6300,0xf780,0xff80,0xff80,0x7f00,0x3e00,0x1c00,0x0800 },
  219. chip    spade[]    = {    0x0800,0x1c00,0x3e00,0x7f00,0xff80,0xff80,0x0800,0x3e00 },
  220. chip    iclub[]    = { 0x3e00,0x0800,0x6b00,0xff80,0x6b00,0x1c00,0x1c00,0x0800 },
  221. chip    idiamond[]     = {    0xee00,0xc600,0x8200,0x0000,0x0000,0x8200,0xc600,0xee00,
  222.         0x1000,0x3800,0x7c00,0xfe00,0xfe00,0x7c00,0x3800,0x1000 },
  223. chip    ispade[]    = { 0x3e00,0x0800,0xff80,0xff80,0x7f00,0x3e00,0x1c00,0x0800 },
  224. chip    iheart[]     = {    0xf780,0xe380,0xc180,0x8080,0x0000,0x0000,0x0800,0x9c80,
  225.         0x0800,0x1c00,0x3e00,0x7f00,0xff80,0xff80,0xf780,0x6300 },
  226. chip    edge[]    = 
  227.         {
  228.             0x0fff,0xe800,0x3fff,0xb800,0x7fff,0x7800,0x7fff,0x7800,
  229.             0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,
  230.             0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,
  231.             0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,
  232.             0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,
  233.             0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,
  234.             0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,
  235.             0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,
  236.             0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,
  237.             0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,
  238.             0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,0xfffe,0xf800,
  239.             0x7fff,0x7800,0x7fff,0x7800,0x3fff,0xb800,0x0fff,0xe800,
  240.             0x0000,0x1000,0x0000,0x4000,0x0000,0x8000,0x0000,0x8000,
  241.             0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,
  242.             0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,
  243.             0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,
  244.             0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,
  245.             0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,
  246.             0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,
  247.             0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,
  248.             0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,
  249.             0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,
  250.             0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,
  251.             0x0000,0x8000,0x0000,0x8000,0x0000,0x4000,0x0000,0x1000
  252.         },
  253. chip    backpat[] =
  254.         {
  255.             0xffff,0xffff,0xffff,0xc000,0xffff,0x800f,0xffff,0xc000,
  256.             0xffff,0x840f,0xffff,0xc000,0xffff,0xe0ff,0xffff,0xc000,
  257.             0xfd3f,0xf83f,0xff97,0xc000,0xf6df,0xce0f,0xff6d,0xc000,
  258.             0xc93f,0x9dcf,0xff92,0xc000,0xc93f,0x9c3f,0xff92,0x4000,
  259.             0xb6df,0xcf9f,0xff6d,0xc000,0xc93f,0xe3cf,0xff92,0x4000,
  260.             0x493f,0xb00f,0xff92,0x4000,0xb6df,0x8c1f,0xff6d,0x8000,
  261.             0x493f,0x83ff,0xff92,0x4000,0x493f,0xb06f,0xff92,0x4000,
  262.             0xb6df,0xfc0f,0xff6d,0x8000,0x493f,0x8f8f,0xff92,0x4000,
  263.             0x493f,0x83ef,0xff92,0x4000,0xb6df,0xc0ff,0xff6d,0x8000,
  264.             0x493f,0xe43f,0xff92,0x4000,0x493f,0xf30f,0xff92,0x4000,
  265.             0xb6df,0x81cf,0xff6d,0x8000,0x493f,0x8fff,0xff92,0x4000,
  266.             0x493f,0x83ff,0xff92,0x4000,0xb6df,0xf0ff,0xff6d,0x8000,
  267.             0x493f,0xfc3f,0xff92,0x4000,0x493f,0xff0f,0xff92,0x4000,
  268.             0xb6df,0xffff,0xff6d,0x8000,0x493f,0x800f,0xff92,0x4000,
  269.             0x493f,0x840f,0xff92,0x4000,0xb6de,0x60ff,0xff6d,0x8000,
  270.             0x493e,0x183f,0xff92,0x4000,0x493f,0x860f,0xff92,0x4000,
  271.             0xb6de,0x65cf,0xff6d,0x8000,0x493e,0x1aff,0x5f92,0x4000,
  272.             0x493f,0x875f,0xff92,0x4000,0xb6df,0xe5ab,0xff6d,0x8000,
  273.             0x493f,0xfaf7,0xff92,0x4000,0x493f,0xff5f,0xff92,0x4000,
  274.             0xb6df,0xffab,0xff6d,0x8000,0x493f,0xfff7,0x3f92,0x4000,
  275.             0xc93f,0xfffb,0xff92,0x4000,0xb6df,0xffe0,0xff6d,0xc000,
  276.             0xc93f,0xff87,0x3f92,0xc000,0xfd3f,0xff98,0x3f97,0xc000,
  277.             0xffff,0xffe0,0xffff,0xc000,0xffff,0xff87,0xffff,0xc000,
  278.             0xffff,0xff9f,0xffff,0xc000,0x0000,0x7ff0,0x0000,0x0000,
  279.             0x0000,0x0001,0x7000,0x0000,0x0000,0x0401,0x2000,0x0000,
  280.             0x0000,0x00c0,0xe000,0x0000,0x02c0,0x3030,0x0068,0x0000,
  281.             0x0920,0x4200,0xf092,0x0000,0x36c0,0x01c1,0x006d,0x0000,
  282.             0x36c0,0x1821,0xf06d,0x8000,0x4920,0x0c10,0x0092,0x0000,
  283.             0x36c0,0x43c1,0xf06d,0x8000,0xb6c0,0x3000,0x006d,0x8000,
  284.             0x4920,0x0c01,0x0092,0x4000,0xb6c0,0x0391,0xf06d,0x8000,
  285.             0xb6c0,0x0061,0x006d,0x8000,0x4920,0x7000,0x0092,0x4000,
  286.             0xb6c0,0x0c01,0xe06d,0x8000,0xb6c0,0x0300,0x106d,0x8000,
  287.             0x4920,0x00c1,0xe092,0x4000,0xb6c0,0x0030,0x006d,0x8000,
  288.             0xb6c0,0x7000,0x806d,0x8000,0x4920,0x0001,0x4092,0x4000,
  289.             0xb6c0,0x0c01,0xf06d,0x8000,0xb6c0,0x0300,0x006d,0x8000,
  290.             0x4920,0x00c0,0xf092,0x4000,0xb6c0,0x0031,0x006d,0x8000,
  291.             0xb6c0,0x0000,0xc06d,0x8000,0x4920,0x7ff1,0x0092,0x4000,
  292.             0xb6c0,0x0000,0xf06d,0x8000,0xb6c1,0x8400,0x006d,0x8000,
  293.             0x4921,0xe0c0,0xe092,0x4000,0xb6c1,0xf831,0x106d,0x8000,
  294.             0xb6c1,0xfe00,0xe06d,0x8000,0x4921,0xfb80,0x0092,0x4000,
  295.             0xb6c1,0xfd70,0x206d,0x8000,0xb6c0,0x7ebd,0x106d,0x8000,
  296.             0x4920,0x1bd7,0xe092,0x4000,0xb6c0,0x0568,0xc06d,0x8000,
  297.             0xb6c0,0x00bc,0x306d,0x8000,0x4920,0x0057,0x0092,0x4000,
  298.             0xb6c0,0x0008,0x006d,0x8000,0x36c0,0x0018,0x306d,0x8000,
  299.             0x4920,0x0060,0x0092,0x0000,0x36c0,0x0007,0x006d,0x0000,
  300.             0x02c0,0x0018,0x0068,0x0000,0x0000,0x0060,0x0000,0x0000,
  301.             0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  302.             0x0000,0x7ff0,0x0000,0x0000,0x0000,0x7ff0,0x0000,0x0000,
  303.             0x0000,0x7ff0,0x0000,0x0000,0x0000,0x1fc0,0x0000,0x0000,
  304.             0x0000,0x37f0,0x0000,0x0000,0x0000,0x73f0,0x0000,0x0000,
  305.             0x0000,0x63f0,0x0000,0x0000,0x0000,0x7be0,0x0000,0x0000,
  306.             0x0000,0x3c70,0x0000,0x0000,0x0000,0x5ff0,0x0000,0x0000,
  307.             0x0000,0x7ff0,0x0000,0x0000,0x0000,0x7fe0,0x0000,0x0000,
  308.             0x0000,0x7f90,0x0000,0x0000,0x0000,0x4ff0,0x0000,0x0000,
  309.             0x0000,0x73f0,0x0000,0x0000,0x0000,0x7c70,0x0000,0x0000,
  310.             0x0000,0x7f10,0x0000,0x0000,0x0000,0x3fc0,0x0000,0x0000,
  311.             0x0000,0x1bf0,0x0000,0x0000,0x0000,0x7cf0,0x0000,0x0000,
  312.             0x0000,0x7e30,0x0000,0x0000,0x0000,0x7c00,0x0000,0x0000,
  313.             0x0000,0x7f00,0x0000,0x0000,0x0000,0x0fc0,0x0000,0x0000,
  314.             0x0000,0x03f0,0x0000,0x0000,0x0000,0x00f0,0x0000,0x0000,
  315.             0x0000,0x7ff0,0x0000,0x0000,0x0000,0x7ff0,0x0000,0x0000,
  316.             0x0001,0xfff0,0x0000,0x0000,0x0000,0x7fc0,0x0000,0x0000,
  317.             0x0000,0x1ff0,0x0000,0x0000,0x0001,0x87f0,0x0000,0x0000,
  318.             0x0000,0x65b0,0x0000,0x0000,0x0000,0x1af0,0x8000,0x0000,
  319.             0x0000,0x075c,0x0000,0x0000,0x0000,0x05ab,0x0000,0x0000,
  320.             0x0000,0x02f7,0xc000,0x0000,0x0000,0x015f,0xf000,0x0000,
  321.             0x0000,0x002b,0xf000,0x0000,0x0000,0x0017,0x3000,0x0000,
  322.             0x0000,0x001f,0xf000,0x0000,0x0000,0x006a,0xf000,0x0000,
  323.             0x0000,0x0077,0x3000,0x0000,0x0000,0x007d,0x0000,0x0000,
  324.             0x0000,0x006a,0x0000,0x0000,0x0000,0x0070,0x0000,0x0000,
  325.             0x0000,0x0060,0x0000,0x0000
  326.         },
  327. chip    ebackpat[] =
  328.         {
  329.             0xfd00,0xf6c0,0xc900,0xc900,0xb6c0,0xc900,0x4900,0xb6c0,
  330.             0x4900,0x4900,0xb6c0,0x4900,0x4900,0xb6c0,0x4900,0x4900,
  331.             0xb6c0,0x4900,0x4900,0xb6c0,0x4900,0x4900,0xb6c0,0x4900,
  332.             0x4900,0xb6c0,0x4900,0x4900,0xb6c0,0x4900,0x4900,0xb6c0,
  333.             0x4900,0x4900,0xb6c0,0x4900,0xc900,0xb6c0,0xc900,0xfd00,
  334.             0x02c0,0x0900,0x36c0,0x36c0,0x4900,0x36c0,0xb6c0,0x4900,
  335.             0xb6c0,0xb6c0,0x4900,0xb6c0,0xb6c0,0x4900,0xb6c0,0xb6c0,
  336.             0x4900,0xb6c0,0xb6c0,0x4900,0xb6c0,0xb6c0,0x4900,0xb6c0,
  337.             0xb6c0,0x4900,0xb6c0,0xb6c0,0x4900,0xb6c0,0xb6c0,0x4900,
  338.             0xb6c0,0xb6c0,0x4900,0xb6c0,0x36c0,0x4900,0x36c0,0x02c0
  339.         },
  340. chip    blank[] =
  341.         {
  342.             0x0fff,0xffff,0xffff,0xfff0,0x3fff,0xffff,0xffff,0xfffc,
  343.             0x7fff,0xffff,0xffff,0xfffe,0x7fff,0xffff,0xffff,0xfffe,
  344.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  345.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  346.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  347.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  348.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  349.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  350.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  351.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  352.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  353.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  354.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  355.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  356.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  357.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  358.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  359.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  360.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  361.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  362.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  363.             0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
  364.             0x7fff,0xffff,0xffff,0xfffe,0x7fff,0xffff,0xffff,0xfffe,
  365.             0x3fff,0xffff,0xffff,0xfffc,0x0fff,0xffff,0xffff,0xfff0
  366.         };
  367.  
  368. USHORT    chip    redjpic[] =
  369. {
  370.     0x0000,0x0000,0x0000,0x7f92,0x495f,0xe000,0x7fc0,0x03a1,
  371.     0xc000,0x7fff,0xffde,0x0000,0x7fe3,0x3fe1,0xe000,0x7fef,
  372.     0xfffe,0x0000,0x7ff7,0xffff,0x4000,0x7ff0,0x37ff,0x2000,
  373.     0x3e03,0xe0ff,0x8000,0x181f,0xffc1,0xc000,0x0841,0xff21,
  374.     0x2000,0x187c,0x0fe1,0x8000,0x29df,0xfe99,0x4000,0x4ef6,
  375.     0xf10f,0x2000,0x1b3f,0xf20d,0x8000,0x2b43,0xdc59,0x4000,
  376.     0x49a7,0x5499,0x2000,0x199f,0x5719,0x8000,0x29bd,0x1519,
  377.     0x4000,0x298d,0x45d9,0x4000,0x198d,0x5799,0x8000,0x4993,
  378.     0x5e59,0x2000,0x29a3,0x5c2d,0x4000,0x1b04,0xffcd,0x8000,
  379.     0x4f09,0xf6f7,0x2000,0x2997,0xffb9,0x4000,0x187f,0x03e1,
  380.     0x8000,0x484f,0xf821,0x0000,0x383f,0xff80,0x8000,0x1ff0,
  381.     0x7c07,0xc000,0x4ffe,0xc0ff,0xe000,0x2fff,0xfeff,0xe000,
  382.     0x07ff,0xff7f,0xe000,0x787f,0xcc7f,0xe000,0x07bf,0xffff,
  383.     0xe000,0x385c,0x003f,0xe000,0x7fa9,0x249f,0xe000,0x0000,
  384.     0x0000,0x0000,0x0000,0x0000,0x0000,0x006d,0xb6a0,0x0000,
  385.     0x003f,0xfc5e,0x2000,0x003f,0xfc21,0xe000,0x0000,0x001e,
  386.     0x0000,0x0002,0x0001,0xe000,0x0003,0x0000,0x2000,0x0000,
  387.     0x0000,0x0000,0x4000,0x0000,0x0000,0x6001,0xf900,0x0000,
  388.     0x71c0,0x0230,0xc000,0x67c0,0x043e,0x6000,0x47a0,0x101e,
  389.     0x2000,0x05c9,0x2016,0x0000,0x02be,0x8014,0x0000,0x1281,
  390.     0x0028,0x8000,0x3142,0x0028,0xc000,0x6148,0x0028,0x6000,
  391.     0x4140,0x6028,0x2000,0x4140,0x3028,0x2000,0x6140,0x0128,
  392.     0x6000,0x3140,0x0428,0xc000,0x1140,0x0814,0x8000,0x0280,
  393.     0x17d4,0x0000,0x0680,0x493a,0x0000,0x4780,0x805e,0x2000,
  394.     0x67c2,0x003e,0x6000,0x30c4,0x0038,0xe000,0x0009,0xf800,
  395.     0x6000,0x0000,0x0000,0x2000,0x0000,0x0000,0x0000,0x4000,
  396.     0x0c00,0x0000,0x7800,0x0400,0x0000,0x0780,0x0000,0x0000,
  397.     0x7843,0xffc0,0x0000,0x47a3,0xffc0,0x0000,0x0056,0xdb60,
  398.     0x0000,0x0000,0x0000,0x0000,0xffff,0xffff,0xf000,0x8000,
  399.     0x0040,0x3000,0x8000,0x0020,0x5000,0x8000,0x001e,0x1000,
  400.     0x803c,0xde01,0xf000,0x8030,0x0e00,0x1000,0x8078,0x0e81,
  401.     0x9000,0xc0ff,0xcf81,0xd000,0xa1fc,0x1fe1,0x7000,0x9ffe,
  402.     0x06ff,0xb000,0x8e3f,0xfdcf,0x1000,0x883f,0xfbc1,0x1000,
  403.     0x9807,0xefe1,0x9000,0xba00,0x5fe9,0xd000,0xed41,0x7feb,
  404.     0x7000,0xcd7e,0xafd7,0x3000,0x8ebd,0xafd7,0x1000,0x8eb6,
  405.     0xabd7,0x1000,0x9eba,0x8bd7,0x9000,0x9eba,0x8bd7,0x9000,
  406.     0x8ebe,0xaed7,0x1000,0x8ebe,0xabd7,0x1000,0xcebf,0xb7eb,
  407.     0x3000,0xed7f,0xe82b,0x7000,0xb97f,0xa005,0xd000,0x987f,
  408.     0x7e01,0x9000,0x883d,0xffc1,0x1000,0x8f3b,0xffc7,0x1000,
  409.     0xdff6,0x07ff,0x9000,0xe87f,0x83f8,0x5000,0xb81f,0x3ff0,
  410.     0x3000,0x9817,0x01e0,0x1000,0x8007,0x00c0,0x1000,0xf807,
  411.     0xb3c0,0x1000,0x8780,0x0000,0x1000,0xa040,0x0000,0x1000,
  412.     0xc020,0x0000,0x1000,0xffff,0xffff,0xf000
  413. };
  414. USHORT    chip    blackjpic[] =
  415. {
  416.     0x0000,0x0000,0x0000,0x7ff9,0x249f,0xe000,0x7ffc,0x003e,
  417.     0x2000,0x7fff,0xffff,0xe000,0x7fff,0xffff,0xe000,0x7fff,
  418.     0xffff,0xe000,0x7fff,0xfffe,0xa000,0x7fff,0xff7f,0xe000,
  419.     0x7fff,0xffff,0xe000,0x7fff,0xffff,0xe000,0x784f,0xf824,
  420.     0x8000,0x787f,0x03e2,0x4000,0x79ff,0xfffa,0x4000,0x7f7f,
  421.     0xfff7,0x2000,0x7f7f,0xffcd,0x8000,0x7dbf,0xffed,0xe000,
  422.     0x7f9f,0xffd9,0xe000,0x7f8f,0xffd9,0xe000,0x7f8f,0xffd9,
  423.     0xe000,0x79bf,0xff1f,0xe000,0x79bf,0xff1f,0xe000,0x79bf,
  424.     0xff9f,0xe000,0x7b7f,0xffdb,0xe000,0x1b3f,0xffef,0xe000,
  425.     0x4eff,0xffef,0xe000,0x25ff,0xfff9,0xe000,0x247c,0x0fe1,
  426.     0xe000,0x1241,0xff21,0xe000,0x7fff,0xffff,0xe000,0x7fff,
  427.     0xffff,0xe000,0x7fef,0xffff,0xe000,0x57ff,0xffff,0xe000,
  428.     0x7fff,0xffff,0xe000,0x7fff,0xffff,0xe000,0x7fff,0xffff,
  429.     0xe000,0x47c0,0x03ff,0xe000,0x7f92,0x49ff,0xe000,0x0000,
  430.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0007,0xffe0,0x0000,
  431.     0x0003,0xffc1,0xc000,0x0003,0xffc0,0x0000,0x0000,0x0680,
  432.     0x0000,0x0000,0x00c0,0x0000,0x0000,0x0381,0x4000,0x0000,
  433.     0x0400,0x0000,0x0000,0x0000,0x0000,0x07c9,0xf87c,0x0000,
  434.     0x78f4,0x07fb,0x6000,0x37c2,0xfc3d,0xa000,0x37e8,0x805d,
  435.     0xa000,0x36f7,0x4938,0xc000,0x12fb,0x17d4,0x6000,0x595c,
  436.     0x4bd5,0x8000,0x5d4d,0x55a9,0xe000,0x6741,0x5169,0xe000,
  437.     0x7945,0x7429,0xe000,0x7945,0xd429,0xe000,0x7969,0x542e,
  438.     0x6000,0x795a,0x532b,0xa000,0x1abd,0x53a9,0xa000,0x62be,
  439.     0x8df4,0x8000,0x35c9,0x2ef6,0xc000,0x5ba0,0x117e,0xc000,
  440.     0x5bc3,0xe43e,0xc000,0x6dfe,0x0231,0xe000,0x03e1,0xf93e,
  441.     0x0000,0x0000,0x0000,0x0000,0x0002,0x0000,0x0000,0x281c,
  442.     0x0000,0x0000,0x0030,0x0000,0x0000,0x0016,0x0000,0x0000,
  443.     0x003f,0xfc00,0x0000,0x383f,0xfc00,0x0000,0x007f,0xfe00,
  444.     0x0000,0x0000,0x0000,0x0000,0xffff,0xffff,0xf000,0x8000,
  445.     0x0001,0xd000,0x8000,0x0002,0x3000,0x8000,0x0001,0xd000,
  446.     0x8007,0xf000,0x9000,0x8007,0xc001,0xd000,0x8017,0xc002,
  447.     0xb000,0x801f,0x0081,0xd000,0x807f,0xfffc,0x9000,0x8036,
  448.     0x0783,0xf000,0x870b,0xf804,0x9000,0xc83d,0x03c2,0x5000,
  449.     0xc817,0x7e02,0x5000,0xc908,0xa007,0x3000,0xed04,0xe82b,
  450.     0x9000,0xa6a3,0x142a,0x7000,0xa2b2,0x0a56,0x1000,0x98bc,
  451.     0x0696,0x1000,0x86b8,0x01d6,0x1000,0x86b8,0x01d6,0x1000,
  452.     0x8696,0x03d1,0x9000,0x86a5,0x04d4,0x5000,0xe542,0x8c56,
  453.     0x5000,0x9d41,0x720b,0x7000,0xca00,0x5109,0x3000,0xa407,
  454.     0xee81,0x3000,0xa43c,0x1bc1,0x3000,0x9201,0xfdce,0x1000,
  455.     0xfc1e,0x06c0,0x1000,0x93ff,0xffe0,0x1000,0xb810,0x0f80,
  456.     0x1000,0xd400,0x3e80,0x1000,0xb800,0x3e00,0x1000,0x9000,
  457.     0xfe00,0x1000,0xb800,0x0000,0x1000,0xc400,0x0000,0x1000,
  458.     0xb800,0x0000,0x1000,0xffff,0xffff,0xf000
  459. };
  460.  
  461. USHORT    chip    redqpic[] =
  462. {
  463.     0x0000,0x0000,0x0000,0x7fff,0x491f,0xe000,0x7ffc,0x9c8f,
  464.     0x6000,0x63f9,0x7f07,0xe000,0x49f2,0x18c3,0xe000,0x63f2,
  465.     0xefc1,0xe000,0x77e6,0xef84,0xe000,0x7be1,0x43a4,0x6000,
  466.     0x71f4,0xbc52,0x2000,0x68af,0xc3fd,0x8000,0x68bf,0xfffe,
  467.     0x6000,0x775f,0xffff,0x0000,0x7f43,0xc790,0x0000,0x7e80,
  468.     0xcc0c,0x0000,0x6d79,0x9f3f,0x0000,0x567f,0xfe0f,0xe000,
  469.     0x0b1f,0xfce1,0xa000,0x444f,0xfcf1,0x4000,0x28e0,0x0000,
  470.     0xa000,0x5000,0x0071,0x4000,0x28f3,0xff22,0x2000,0x5873,
  471.     0xff8d,0x0000,0x7f07,0xffe6,0xa000,0x0fcf,0x99eb,0x6000,
  472.     0x0303,0x3017,0xe000,0x009e,0x3c2f,0xe000,0x0fff,0xffae,
  473.     0xe000,0x67ff,0xffd1,0x6000,0x1bfc,0x3f51,0x6000,0x44a3,
  474.     0xd2f8,0xe000,0x625c,0x287d,0xe000,0x721f,0x767e,0xe000,
  475.     0x783f,0x74fc,0x6000,0x7c31,0x84f9,0x2000,0x7e0f,0xe9fc,
  476.     0x6000,0x6f13,0x93ff,0xe000,0x7f89,0x2fff,0xe000,0x0000,
  477.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0078,0x0000,
  478.     0x0003,0x0038,0x0000,0x1c06,0x001e,0x0000,0x360c,0x000e,
  479.     0x0000,0x1c0e,0x0007,0x8000,0x001e,0x0003,0x0000,0x0018,
  480.     0x0001,0x8000,0x0000,0x0000,0xc000,0x0000,0x0000,0x6000,
  481.     0x0080,0x0000,0x0000,0x075e,0x007f,0x0000,0x0f5f,0x83f0,
  482.     0x0000,0x06bf,0x878c,0x0000,0x0107,0x0803,0x0000,0x0078,
  483.     0x0600,0xe000,0x3007,0xf802,0x0000,0x3000,0x0006,0x0000,
  484.     0x0603,0x6c07,0x0000,0x0e01,0x2406,0x0000,0x0600,0x0000,
  485.     0xc000,0x0401,0xfe00,0xc000,0x7006,0x01e0,0x0000,0x0c01,
  486.     0x0e08,0x0000,0x031e,0x1fd6,0x0000,0x00fc,0x1faf,0x0000,
  487.     0x0fe0,0x07ae,0x0000,0x0000,0x0010,0x0000,0x6000,0x0000,
  488.     0x0000,0x3000,0x0000,0x0000,0x1800,0x0180,0x0000,0x0c00,
  489.     0x0780,0x0000,0x1e00,0x0703,0x8000,0x0700,0x0306,0xc000,
  490.     0x0780,0x0603,0x8000,0x01c0,0x0c00,0x0000,0x01e0,0x0000,
  491.     0x0000,0x0000,0x0000,0x0000,0xffff,0xffff,0xf000,0x8003,
  492.     0xb686,0xf000,0x8004,0x6347,0xf000,0x8009,0x80e1,0x9000,
  493.     0x8813,0xe731,0xf000,0x8011,0x1038,0x7000,0x8821,0x1078,
  494.     0xd000,0x8426,0xbc5a,0x1000,0x8e3b,0x43ad,0x1000,0x9f7e,
  495.     0xffbe,0x1000,0x9f77,0xdeef,0x9000,0x88a1,0x7780,0xf000,
  496.     0x90a0,0x7c0f,0xf000,0xf940,0x7873,0xf000,0xfef8,0xf7fc,
  497.     0xf000,0xff87,0xf9ff,0x1000,0xcff8,0x07fd,0xf000,0xcfff,
  498.     0xfff9,0xf000,0xf9fc,0x93f8,0xf000,0xf1fe,0xdbf9,0xf000,
  499.     0xf9ff,0xffff,0x3000,0xfbfe,0x01ff,0x3000,0x8ff9,0xfe1f,
  500.     0xf000,0xf3fe,0xf1f7,0xf000,0xfce1,0xe029,0xf000,0xff03,
  501.     0xe050,0x9000,0xf01e,0xe851,0x1000,0x9f77,0xbeef,0x9000,
  502.     0x87df,0xf7ef,0x9000,0x8b5c,0x2dc7,0x1000,0x85a3,0xd642,
  503.     0x1000,0xb1e0,0x8841,0x1000,0xe1c0,0x8880,0x1000,0xf8ce,
  504.     0x7c81,0x1000,0x9870,0x1900,0x1000,0xfe2c,0x6200,0x1000,
  505.     0xf616,0xdc00,0x1000,0xffff,0xffff,0xf000
  506. };
  507.  
  508. USHORT    chip    blackqpic[] =
  509. {
  510.     0x0000,0x0000,0x0000,0x7fff,0x08c7,0xe000,0x7ffe,0x1ce7,
  511.     0xe000,0x7ff8,0x7f71,0xe000,0x77e2,0x1879,0xe000,0x7fc6,
  512.     0xefbc,0x0000,0x678e,0xef7e,0x2000,0x6f1f,0x435f,0xe000,
  513.     0x473f,0xa0ef,0xe000,0x53ef,0xbf77,0xe000,0x517d,0xf7ed,
  514.     0xe000,0x67ff,0xffff,0xa000,0x7303,0x93c1,0x8000,0x6982,
  515.     0x7c83,0x0000,0x55af,0x26af,0xe000,0x2bec,0xf4b3,0x2000,
  516.     0x5a60,0x007e,0xa000,0x25f7,0xfecd,0x2000,0x4535,0x9afa,
  517.     0x2000,0x45f5,0x9aca,0x2000,0x4b37,0xfefa,0x4000,0x57e0,
  518.     0x0065,0xa000,0x4cd2,0xf37d,0x4000,0x7f56,0x4f5a,0xa000,
  519.     0x0c13,0xe419,0x6000,0x183c,0x9c0c,0xe000,0x5fff,0xfffe,
  520.     0x6000,0x7b7e,0xfbe8,0xa000,0x7eef,0xdf7c,0xa000,0x7f70,
  521.     0x5fce,0x2000,0x7fac,0x2f8f,0x6000,0x47ef,0x771e,0x6000,
  522.     0x03df,0x763f,0xe000,0x79e1,0x847e,0xe000,0x78ef,0xe1ff,
  523.     0xe000,0x7e73,0x87ff,0xe000,0x7e31,0x0fff,0xe000,0x0000,
  524.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xc0f8,0x0000,
  525.     0x0001,0x80f8,0x0000,0x0007,0x007e,0x0000,0x081c,0x007e,
  526.     0x0000,0x003a,0x003f,0xe000,0x0076,0x003f,0xc000,0x00ef,
  527.     0x001f,0x0000,0x00df,0x800f,0x8000,0x0000,0x0007,0xc000,
  528.     0x0000,0x0001,0xe000,0x01ff,0xffff,0xa000,0x0efc,0x003f,
  529.     0x8000,0x277c,0x007f,0x0000,0x5378,0x01f0,0x0000,0x2818,
  530.     0x03cc,0x0000,0x5180,0x0000,0x4000,0x1800,0x0030,0xc000,
  531.     0x38c0,0x6001,0xc000,0x3800,0x6031,0xc000,0x30c0,0x0001,
  532.     0x8000,0x2000,0x0018,0xa000,0x033c,0x0181,0x4000,0x00f8,
  533.     0x01ec,0xa000,0x0fe0,0x03ee,0x4000,0x1fc0,0x03f7,0x0000,
  534.     0x5fff,0xfff8,0x0000,0x7800,0x0000,0x0000,0x3e00,0x0000,
  535.     0x0000,0x1f00,0x1fb0,0x0000,0x0f80,0x0f70,0x0000,0x3fc0,
  536.     0x06e0,0x0000,0x7fc0,0x05c0,0x0000,0x07e0,0x0381,0x0000,
  537.     0x07e0,0x0e00,0x0000,0x01f0,0x1800,0x0000,0x01f0,0x3000,
  538.     0x0000,0x0000,0x0000,0x0000,0xffff,0xffff,0xf000,0x8000,
  539.     0x3706,0xf000,0x8000,0x6307,0xf000,0x9c00,0x8081,0x9000,
  540.     0xb601,0xe781,0xf000,0x9c01,0x1040,0x1000,0x9801,0x1080,
  541.     0x1000,0x9000,0xbca0,0x1000,0xb800,0x5f10,0x1000,0xbc7f,
  542.     0xfff8,0x1000,0xbfff,0xfffe,0x1000,0x9e00,0x0000,0x5000,
  543.     0xb103,0xffc0,0x7000,0xd883,0xff80,0xf000,0xac87,0xfe0f,
  544.     0xf000,0xd7e7,0xfc33,0xf000,0xae7f,0xffff,0x3000,0xe3ff,
  545.     0x4fce,0x3000,0xc33f,0x1ffc,0x3000,0xc3ff,0x8fcc,0x3000,
  546.     0xc73f,0x2ffc,0x7000,0xcfff,0xffe7,0x5000,0xfcc3,0xfe7e,
  547.     0xb000,0xff07,0xfe13,0x5000,0xf01f,0xfc11,0xb000,0xe03f,
  548.     0xfc08,0xd000,0xa000,0x0007,0x9000,0x87ff,0xffff,0xd000,
  549.     0x81ff,0xffe3,0xd000,0x808f,0xa001,0xd000,0x8053,0xd000,
  550.     0x9000,0x8010,0x8801,0x9000,0x8020,0x8803,0x9000,0xf81e,
  551.     0x7806,0xd000,0x9810,0x1003,0x9000,0xfe0c,0x6000,0x1000,
  552.     0xf60e,0xc000,0x1000,0xffff,0xffff,0xf000
  553. };
  554. USHORT    chip    redkpic[] =
  555. {
  556.     0x0000,0x0000,0x0000,0x7fee,0xdbb8,0x5000,0x7ff1,0x0470,
  557.     0xd000,0x7fff,0xffe0,0x5000,0x7ff0,0xc040,0x1000,0x7ff3,
  558.     0xfa60,0x5000,0x7ff3,0xf830,0xd000,0x7fe0,0x3458,0x5000,
  559.     0x7e04,0x0f80,0x1000,0x7ea7,0xfa29,0x1000,0x6852,0x355b,
  560.     0x0000,0x122a,0xc0a6,0x8000,0x2797,0x9744,0x4000,0x7fa8,
  561.     0x58a2,0xc000,0x1c55,0x6159,0x6000,0x6429,0x8098,0x2000,
  562.     0x1de4,0xf959,0x6000,0x672a,0xf931,0xc000,0x1d04,0xbaa0,
  563.     0x8000,0x082a,0xe905,0xc000,0x1c64,0xfaa7,0x3000,0x34d4,
  564.     0xf93d,0xc000,0x20c8,0x0ca1,0x3000,0x34d4,0x3551,0xc000,
  565.     0x1a28,0xd0af,0xf000,0x1117,0x4f4f,0x2000,0x0b28,0x1aa2,
  566.     0x4000,0x06d5,0x6250,0xb000,0x44a2,0xff2b,0xf000,0x400f,
  567.     0x8103,0xf000,0x50d1,0x603f,0xf000,0x5860,0xfe7f,0xf000,
  568.     0x5032,0xfe7f,0xf000,0x4010,0x187f,0xf000,0x503f,0xffff,
  569.     0xf000,0x5871,0x047f,0xf000,0x50ee,0xdbbf,0xf000,0x0000,
  570.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0005,0xa000,
  571.     0x0004,0x510e,0x2000,0x0007,0xff1d,0xa000,0x000c,0x0fba,
  572.     0xa000,0x000c,0x879d,0xa000,0x000d,0x07ce,0x2000,0x001c,
  573.     0x0fe5,0xa000,0x0007,0xfd80,0xa000,0x00f7,0xfa7d,0x4000,
  574.     0x1e73,0xfd7b,0x2000,0x7f7b,0xf6f7,0x9000,0x783f,0xdfe7,
  575.     0xd000,0x03bd,0x7deb,0xd000,0x645d,0xfdc5,0xf000,0x1d3d,
  576.     0xfdc5,0xf000,0x65ee,0x03c5,0xf000,0x1fee,0x538b,0xd000,
  577.     0x678e,0xfb97,0xa000,0x2f4e,0xfb8f,0x3000,0x5e8e,0x53bf,
  578.     0xc000,0x7d1e,0x03bd,0x3000,0x7d1d,0xfde5,0xc000,0x7d1d,
  579.     0xfdd1,0x3000,0x5ebd,0xf5ee,0x0000,0x5f3f,0xdfe0,0xf000,
  580.     0x4f7b,0x7ef7,0xf000,0x26f5,0xfe73,0xc000,0x15f2,0xff78,
  581.     0x0000,0x280d,0xff00,0x0000,0x2d3f,0x81c0,0x0000,0x239f,
  582.     0x0580,0x0000,0x2dcf,0x0980,0x0000,0x2aef,0x8180,0x0000,
  583.     0x2dc7,0xff00,0x0000,0x2384,0x5100,0x0000,0x2d00,0x0000,
  584.     0x0000,0x0000,0x0000,0x0000,0xffff,0xffff,0xf800,0x801f,
  585.     0xffc7,0x9800,0x800a,0xaa8f,0x1800,0x8000,0x001f,0x9800,
  586.     0x800f,0x3fbf,0xd800,0x800c,0x059f,0x9800,0x800c,0x07cf,
  587.     0x1800,0x801f,0xcba7,0x9800,0x81fb,0xf07f,0xd800,0x9fa8,
  588.     0x05aa,0xf800,0xe9dc,0x17dc,0xf800,0x92ac,0x09ae,0x7800,
  589.     0xa7d4,0xb15c,0x3800,0xfc6a,0xc2b6,0xb800,0x9bb7,0x036b,
  590.     0x5800,0xe3ca,0x02aa,0x1800,0x9a15,0xfd6b,0x5800,0xe13b,
  591.     0x0555,0xb800,0x9975,0x56e8,0x7800,0xf0bb,0x5574,0xc800,
  592.     0xed55,0x06e4,0x3800,0xd6b5,0xfd42,0xc800,0xc2aa,0x029e,
  593.     0x3800,0xd6b6,0x076e,0xc800,0xeb6a,0x1ab1,0xf800,0xe1d4,
  594.     0x695f,0x2800,0xf3ac,0x81aa,0x4800,0xf9df,0x41dc,0xb800,
  595.     0xfaad,0x00af,0xc800,0xdff0,0x7efc,0x0800,0xcf2e,0x9fc0,
  596.     0x0800,0xc79f,0x0180,0x0800,0xcfcd,0x0180,0x0800,0xdfef,
  597.     0xe780,0x0800,0xcfc0,0x0000,0x0800,0xc78a,0xaa80,0x0800,
  598.     0xcf1f,0xffc0,0x0800,0xffff,0xffff,0xf800
  599. };
  600.  
  601. USHORT    chip    blackkpic[] =
  602. {
  603.     0x0000,0x0000,0x0000,0x7ff5,0x557e,0xe000,0x7ff8,0x00fc,
  604.     0x6000,0x7fff,0xfffc,0x6000,0x7fff,0x80fc,0x6000,0x7ffd,
  605.     0xd07c,0x6000,0x7fff,0xc83c,0x6000,0x7fff,0xe03c,0x6000,
  606.     0x7ffc,0x000c,0x6000,0x7fff,0x0004,0x6000,0x79ff,0xf03c,
  607.     0x2000,0x283f,0xfff8,0x6000,0x5a4f,0xfff8,0x6000,0x5807,
  608.     0xb33f,0xe000,0x2f4b,0xcccb,0xa000,0x5901,0xb333,0xc000,
  609.     0x36d2,0xfcc7,0xa000,0x56ff,0xdff5,0xe000,0x5907,0xb61f,
  610.     0x4000,0x2f86,0xde09,0xa000,0x7aff,0xbff6,0xa000,0x5e33,
  611.     0xf4b6,0xc000,0x3ccc,0xd809,0xa000,0x5d33,0x3d2f,0x4000,
  612.     0x7fcc,0xde01,0xa000,0x61ff,0xff25,0xa000,0x61ff,0xffc1,
  613.     0x4000,0x43c0,0xfff9,0xe000,0x6200,0x0fff,0xe000,0x6300,
  614.     0x03ff,0xe000,0x63c0,0x7fff,0xe000,0x63c1,0x3fff,0xe000,
  615.     0x63e0,0xbbff,0xe000,0x63f0,0x1fff,0xe000,0x63ff,0xffff,
  616.     0xe000,0x63f0,0x01ff,0xe000,0x77ea,0xaaff,0xe000,0x0000,
  617.     0x0000,0x0000,0x0000,0x0000,0x0000,0x000a,0xaa81,0x0000,
  618.     0x0003,0xfe02,0x8000,0x0007,0xff03,0x8000,0x0004,0x7f02,
  619.     0x8000,0x0004,0x0f83,0x8000,0x0008,0x07c2,0x8000,0x0006,
  620.     0x1fc3,0x8000,0x0007,0xfff2,0x8000,0x007e,0xfffb,0x8000,
  621.     0x0e3f,0x7ffa,0xc000,0x0fcf,0x7ff7,0x8000,0x0ff7,0xbfee,
  622.     0xa000,0x0ff3,0x800f,0xc000,0x0ff1,0x800c,0x2000,0x0ff0,
  623.     0x800c,0x0000,0x10f0,0xf01c,0x0000,0x1083,0x2c1e,0x4000,
  624.     0x0ffc,0x2bfe,0x0000,0x07fd,0x43ff,0x0000,0x2783,0x4c10,
  625.     0x8000,0x0380,0xf0f0,0x8000,0x0300,0x10ff,0x0000,0x4300,
  626.     0x18ff,0x0000,0x3f00,0x1cff,0x0000,0x577f,0xdeff,0x0000,
  627.     0x1eff,0xef3f,0x0000,0x35ff,0xefc7,0x0000,0x1dff,0xf7e0,
  628.     0x0000,0x14ff,0xfe00,0x0000,0x1c3f,0x8600,0x0000,0x143e,
  629.     0x0100,0x0000,0x1c1f,0x0200,0x0000,0x140f,0xe200,0x0000,
  630.     0x1c0f,0xfe00,0x0000,0x1407,0xfc00,0x0000,0x0815,0x5500,
  631.     0x0000,0x0000,0x0000,0x0000,0xffff,0xffff,0xf000,0x8000,
  632.     0x0001,0x1000,0x8004,0x0103,0x9000,0x8000,0x0003,0x9000,
  633.     0x8000,0x7f03,0x9000,0x8002,0x2f83,0x9000,0x8000,0x37c3,
  634.     0x9000,0x8000,0x1fc3,0x9000,0x80fb,0xfff3,0x9000,0x9f81,
  635.     0x0007,0xd000,0xf1c0,0x8007,0xb000,0xf030,0x800b,0xf000,
  636.     0xf008,0x401b,0xf000,0xf00c,0x7ff7,0xf000,0xf00e,0x7ffb,
  637.     0xf000,0xf00f,0x7ff3,0xf000,0xeb0f,0x0fe3,0xf000,0xed7c,
  638.     0xd3e5,0xf000,0xf003,0xf401,0xf000,0xf802,0xfc00,0xf000,
  639.     0xfa7c,0xb3eb,0x7000,0xfc7f,0x0f0d,0x7000,0xfcff,0xef00,
  640.     0xf000,0xfdff,0xe700,0xf000,0xfeff,0xe300,0xf000,0xfd80,
  641.     0x2100,0xf000,0xfd00,0x10c0,0xf000,0xde00,0x1038,0xf000,
  642.     0xbe00,0x081f,0x9000,0x9cff,0xfdf0,0x1000,0x9c3f,0x8000,
  643.     0x1000,0x9c3e,0xc000,0x1000,0x9c1f,0x4400,0x1000,0x9c0f,
  644.     0xe000,0x1000,0x9c00,0x0000,0x1000,0x9c08,0x0200,0x1000,
  645.     0x8800,0x0000,0x1000,0xffff,0xffff,0xf000
  646. };
  647.  
  648. /*diamonds:a-k;hearts:a-k;clubs:a-k;spades:a-k*/
  649. struct    Image    da[] =
  650. {
  651.     { 0,0,64,48,1, blank,1,0, &da[1] },
  652.     { TLNX,TLNY,6,7,2, reda,3,0, &da[2] },
  653.     { BRNX,BRNY,6,7,2, ireda,3,0, &da[3] },
  654.     { P11X,P11Y,7,8,2, diamond,3,0, &da[4] },
  655.     { TLSX,TLSY,7,8,2, diamond,3,0, &da[5]},
  656.     { BRSX,BRSY,7,8,2, idiamond,3,0, NULL }
  657. };
  658. struct    Image    d2[] =
  659. {
  660.     { 0,0,64,48,1, blank,1,0, &d2[1] },
  661.     { TLNX,TLNY,6,7,2, red2,3,0, &d2[2] },
  662.     { BRNX,BRNY,6,7,2, ired2,3,0, &d2[3] },
  663.     { P14X,P14Y,7,8,2, diamond,3,0, &d2[4] },
  664.     { P15X,P15Y,7,8,2, idiamond,3,0, &da[4] }
  665. };
  666. struct    Image    d3[] =
  667. {
  668.     { 0,0,64,48,1, blank,1,0, &d3[1] },
  669.     { TLNX,TLNY,6,7,2, red3,3,0, &d3[2] },
  670.     { BRNX,BRNY,6,7,2, ired3,3,0, &d3[3]},
  671.     { P11X,P11Y,7,8,2, diamond,3,0, &d2[3] }
  672. };
  673. struct    Image    d4[] =
  674. {
  675.     { 0,0,64,48,1, blank,1,0, &d4[1] },
  676.     { TLNX,TLNY,6,7,2, red4,3,0, &d4[2] },
  677.     { BRNX,BRNY,6,7,2, ired4,3,0, &d4[3]},
  678.     { P1X,P1Y,7,8,2, diamond,3,0, &d4[4]},
  679.     { P2X,P2Y,7,8,2, diamond,3,0, &d4[5]},
  680.     { P7X,P7Y,7,8,2, idiamond,3,0, &d4[6] },
  681.     { P8X,P8Y,7,8,2, idiamond,3,0, &da[4] }
  682. };
  683. struct    Image    d5[] =
  684. {
  685.     { 0,0,64,48,1, blank,1,0, &d5[1] },
  686.     { TLNX,TLNY,6,7,2, red5,3,0, &d5[2] },
  687.     { BRNX,BRNY,6,7,2, ired5,3,0, &d5[3]},
  688.     { P11X,P11Y,7,8,2, diamond,3,0, &d4[3] }
  689. };
  690. struct    Image    d6[] =
  691. {
  692.     { 0,0,64,48,1, blank,1,0, &d6[1] },
  693.     { TLNX,TLNY,6,7,2, red6,3,0, &d6[2] },
  694.     { BRNX,BRNY,6,7,2, ired6,3,0, &d6[3] },
  695.     { P9X,P9Y,7,8,2, diamond,3,0, &d6[4] },
  696.     { P10X,P10Y,7,8,2, diamond,3,0, &d4[3] }
  697. };
  698. struct    Image     d7[] =
  699. {
  700.     { 0,0,64,48,1, blank,1,0, &d7[1] },
  701.     { TLNX,TLNY,6,7,2, red7,3,0, &d7[2] },
  702.     { BRNX,BRNY,6,7,2, ired7,3,0, &d7[3]},
  703.     { P13X,P13Y,7,8,2, idiamond,3,0, &d6[3] }
  704. };
  705. struct    Image    d8[] =
  706. {
  707.     { 0,0,64,48,1, blank,1,0, &d8[1] },
  708.     { TLNX,TLNY,6,7,2, red8,3,0, &d8[2] },
  709.     { BRNX,BRNY,6,7,2, ired8,3,0, &d8[3] },
  710.     { P12X,P12Y,7,8,2, diamond,3,0, &d7[3] }
  711. };
  712. struct    Image    d9[] =
  713. {
  714.     { 0,0,64,48,1, blank,1,0, &d9[1] },
  715.     { TLNX,TLNY,6,7,2, red9,3,0, &d9[2] },
  716.     { BRNX,BRNY,6,7,2, ired9,3,0, &d9[3] },
  717.     { P11X,P11Y,7,8,2, diamond,3,0, &d9[4] },
  718.     { P3X,P3Y,7,8,2, diamond,3,0, &d9[5] },
  719.     { P4X,P4Y,7,8,2, diamond,3,0, &d9[6] },
  720.     { P5X,P5Y,7,8,2, idiamond,3,0, &d9[7] },
  721.     { P6X,P6Y,7,8,2, idiamond,3,0, &d4[3] }
  722. };
  723. struct    Image    d10[] =
  724. {
  725.     { 0,0,64,48,1, blank,1,0, &d10[1] },
  726.     { TLNX-1,TLNY,9,7,2, red10,3,0, &d10[2] },
  727.     { BRNX,BRNY,9,7,2, ired10,3,0, &d10[3] },
  728.     { P12X,P12Y,7,8,2, diamond,3,0, &d10[4] },
  729.     { P13X,P13Y,7,8,2, idiamond,3,0, &d9[4] }
  730. };
  731. struct    Image    dj[] =
  732. {
  733.     { 0,0,64,48,1, blank,1,0, &dj[1] },
  734.     { TLNX,TLNY,7,7,2, redj,3,0, &dj[2] },
  735.     { BRNX,BRNY,7,7,2, iredj,3,0, &dj[3] },
  736.     { PICX,PICY,36,38,3, redjpic,7,0, &da[4]}
  737. };
  738. struct    Image    dq[] =
  739. {
  740.     { 0,0,64,48,1, blank,1,0, &dq[1] },
  741.     { TLNX,TLNY,7,7,2, redq,3,0, &dq[2] },
  742.     { BRNX,BRNY,7,7,2, iredq,3,0, &dq[3] },
  743.     { PICX,PICY,36,38,3, redqpic,7,0, &da[4]}
  744. };
  745. struct    Image    dk[] =
  746. {
  747.     { 0,0,64,48,1, blank,1,0, &dk[1] },
  748.     { TLNX,TLNY,6,7,2, redk,3,0, &dk[2] },
  749.     { BRNX,BRNY,6,7,2, iredk,3,0, &dk[3] },
  750.     { PICX,PICY,37,38,3, redkpic,7,0, &da[4]}
  751. };
  752.  
  753. /*hearts*/
  754. struct    Image    ha[] =
  755. {
  756.     { 0,0,64,48,1, blank,1,0, &ha[1] },
  757.     { TLNX,TLNY,6,7,2, reda,3,0, &ha[2] },
  758.     { BRNX,BRNY,6,7,2, ireda,3,0, &ha[3] },
  759.     { P11X,P11Y,9,8,2, heart,3,0, &ha[4] },
  760.     { TLSX,TLSY,9,8,2, heart,3,0, &ha[5] },
  761.     { BRSX,BRSY,9,8,2, iheart,3,0, NULL }
  762. };
  763. struct    Image    h2[] =
  764. {
  765.     { 0,0,64,48,1, blank,1,0, &h2[1] },
  766.     { TLNX,TLNY,6,7,2, red2,3,0, &h2[2] },
  767.     { BRNX,BRNY,6,7,2, ired2,3,0, &h2[3] },
  768.     { P14X,P14Y,9,8,2, heart,3,0, &h2[4] },
  769.     { P15X,P15Y,9,8,2, iheart,3,0, &ha[4] }
  770. };
  771. struct    Image    h3[] =
  772. {
  773.     { 0,0,64,48,1, blank,1,0, &h3[1] },
  774.     { TLNX,TLNY,6,7,2, red3,3,0, &h3[2] },
  775.     { BRNX,BRNY,6,7,2, ired3,3,0, &h3[3] },
  776.     { P11X,P11Y,9,8,2, heart,3,0, &h2[3] }
  777. };
  778. struct    Image    h4[] =
  779. {
  780.     { 0,0,64,48,1, blank,1,0, &h4[1] },
  781.     { TLNX,TLNY,6,7,2, red4,3,0, &h4[2] },
  782.     { BRNX,BRNY,6,7,2, ired4,3,0, &h4[3] },
  783.     { P1X,P1Y,9,8,2, heart,3,0, &h4[4] },
  784.     { P2X,P2Y,9,8,2, heart,3,0, &h4[5] },
  785.     { P7X,P7Y,9,8,2, iheart,3,0, &h4[6] },
  786.     { P8X,P8Y,9,8,2, iheart,3,0, &ha[4] }
  787. };
  788. struct    Image    h5[] =
  789. {
  790.     { 0,0,64,48,1, blank,1,0, &h5[1] },
  791.     { TLNX,TLNY,6,7,2, red5,3,0, &h5[2] },
  792.     { BRNX,BRNY,6,7,2, ired5,3,0, &h5[3] },
  793.     { P11X,P11Y,9,8,2, heart,3,0, &h4[3] }
  794. };
  795. struct    Image    h6[] =
  796. {
  797.     { 0,0,64,48,1, blank,1,0, &h6[1] },
  798.     { TLNX,TLNY,6,7,2, red6,3,0, &h6[2] },
  799.     { BRNX,BRNY,6,7,2, ired6,3,0, &h6[3] },
  800.     { P9X,P9Y,9,8,2, heart,3,0, &h6[4] },
  801.     { P10X,P10Y,9,8,2, heart,3,0, &h4[3] }
  802. };
  803. struct    Image     h7[] =
  804. {
  805.     { 0,0,64,48,1, blank,1,0, &h7[1] },
  806.     { TLNX,TLNY,6,7,2, red7,3,0, &h7[2] },
  807.     { BRNX,BRNY,6,7,2, ired7,3,0, &h7[3] },
  808.     { P13X,P13Y,9,8,2, iheart,3,0, &h6[3] }
  809. };
  810. struct    Image    h8[] =
  811. {
  812.     { 0,0,64,48,1, blank,1,0, &h8[1] },
  813.     { TLNX,TLNY,6,7,2, red8,3,0, &h8[2] },
  814.     { BRNX,BRNY,6,7,2, ired8,3,0, &h8[3] },
  815.     { P12X,P12Y,9,8,2, heart,3,0, &h7[3] }
  816. };
  817. struct    Image    h9[] =
  818. {
  819.     { 0,0,64,48,1, blank,1,0, &h9[1] },
  820.     { TLNX,TLNY,6,7,2, red9,3,0, &h9[2] },
  821.     { BRNX,BRNY,6,7,2, ired9,3,0, &h9[3] },
  822.     { P11X,P11Y,9,8,2, heart,3,0, &h9[4] },
  823.     { P3X,P3Y,9,8,2, heart,3,0, &h9[5] },
  824.     { P4X,P4Y,9,8,2, heart,3,0, &h9[6] },
  825.     { P5X,P5Y,9,8,2, iheart,3,0, &h9[7] },
  826.     { P6X,P6Y,9,8,2, iheart,3,0, &h4[3] }
  827. };
  828. struct    Image    h10[] =
  829. {
  830.     { 0,0,64,48,1, blank,1,0, &h10[1] },
  831.     { TLNX-1,TLNY,9,7,2, red10,3,0, &h10[2] },
  832.     { BRNX,BRNY,9,7,2, ired10,3,0, &h10[3] },
  833.     { P12X,P12Y,9,8,2, heart,3,0, &h10[4] },
  834.     { P13X,P13Y,9,8,2, iheart,3,0, &h9[4] }
  835. };
  836. struct    Image    hj[] =
  837. {
  838.     { 0,0,64,48,1, blank,1,0, &hj[1] },
  839.     { TLNX,TLNY,7,7,2, redj,3,0, &hj[2] },
  840.     { BRNX,BRNY,7,7,2, iredj,3,0, &hj[3] },
  841.     { PICX,PICY,36,38,3, redjpic, 7,0, &ha[4] }
  842. };
  843. struct    Image    hq[] =
  844. {
  845.     { 0,0,64,48,1, blank,1,0, &hq[1] },
  846.     { TLNX,TLNY,7,7,2, redq,3,0, &hq[2] },
  847.     { BRNX,BRNY,7,7,2, iredq,3,0, &hq[3] },
  848.     { PICX,PICY,36,38,3, redqpic,7,0, &ha[4] }
  849. };
  850. struct    Image    hk[] =
  851. {
  852.     { 0,0,64,48,1, blank,1,0, &hk[1] },
  853.     { TLNX,TLNY,6,7,2, redk,3,0, &hk[2] },
  854.     { BRNX,BRNY,6,7,2, iredk,3,0, &hk[3] },
  855.     { PICX,PICY,37,38,3, redkpic,7,0, &ha[4]}
  856. };
  857.  
  858. /*clubs*/
  859. struct    Image    ca[] =
  860. {
  861.     { 0,0,64,48,1, blank,1,0, &ca[1] },
  862.     { TLNX,TLNY,6,7,1, blacka,2,1, &ca[2] },
  863.     { BRNX,BRNY,6,7,1, iblacka,2,1, &ca[3] },
  864.     { P11X,P11Y,9,8,1, club,2,1, &ca[4] },
  865.     { TLSX,TLSY,9,8,1, club,2,1, &ca[5]},
  866.     { BRSX,BRSY,9,8,1, iclub,2,1, NULL }
  867. };
  868. struct    Image    c2[] =
  869. {
  870.     { 0,0,64,48,1, blank,1,0, &c2[1] },
  871.     { TLNX,TLNY,6,7,1, black2,2,1, &c2[2] },
  872.     { BRNX,BRNY,6,7,1, iblack2,2,1, &c2[3] },
  873.     { P14X,P14Y,9,8,1, club,2,1, &c2[4] },
  874.     { P15X,P15Y,9,8,1, iclub,2,1, &ca[4] }
  875. };
  876. struct    Image    c3[] =
  877. {
  878.     { 0,0,64,48,1, blank,1,0, &c3[1] },
  879.     { TLNX,TLNY,6,7,1, black3,2,1, &c3[2] },
  880.     { BRNX,BRNY,6,7,1, iblack3,2,1, &c3[3]},
  881.     { P11X,P11Y,9,8,1, club,2,1, &c2[3] }
  882. };
  883. struct    Image    c4[] =
  884. {
  885.     { 0,0,64,48,1, blank,1,0, &c4[1] },
  886.     { TLNX,TLNY,6,7,1, black4,2,1, &c4[2] },
  887.     { BRNX,BRNY,6,7,1, iblack4,2,1, &c4[3] },
  888.     { P1X,P1Y,9,8,1, club,2,1, &c4[4] },
  889.     { P2X,P2Y,9,8,1, club,2,1, &c4[5] },
  890.     { P7X,P7Y,9,8,1, iclub,2,1, &c4[6] },
  891.     { P8X,P8Y,9,8,1, iclub,2,1, &ca[4] }
  892. };
  893. struct    Image    c5[] =
  894. {
  895.     { 0,0,64,48,1, blank,1,0, &c5[1] },
  896.     { TLNX,TLNY,6,7,1, black5,2,1, &c5[2] },
  897.     { BRNX,BRNY,6,7,1, iblack5,2,1, &c5[3] },
  898.     { P11X,P11Y,9,8,1, club,2,1, &c4[3] }
  899. };
  900. struct    Image    c6[] =
  901. {
  902.     { 0,0,64,48,1, blank,1,0, &c6[1] },
  903.     { TLNX,TLNY,6,7,1, black6,2,1, &c6[2] },
  904.     { BRNX,BRNY,6,7,1, iblack6,2,1, &c6[3] },
  905.     { P9X,P9Y,9,8,1, club,2,1, &c6[4] },
  906.     { P10X,P10Y,9,8,1, club,2,1, &c4[3] }
  907. };
  908. struct    Image     c7[] =
  909. {
  910.     { 0,0,64,48,1, blank,1,0, &c7[1] },
  911.     { TLNX,TLNY,6,7,1, black7,2,1, &c7[2] },
  912.     { BRNX,BRNY,6,7,1, iblack7,2,1, &c7[3]},
  913.     { P13X,P13Y,9,8,1, iclub,2,1, &c6[3] }
  914. };
  915. struct    Image    c8[] =
  916. {
  917.     { 0,0,64,48,1, blank,1,0, &c8[1] },
  918.     { TLNX,TLNY,6,7,1, black8,2,1, &c8[2] },
  919.     { BRNX,BRNY,6,7,1, iblack8,2,1, &c8[3] },
  920.     { P12X,P12Y,9,8,1, club,2,1, &c7[3] }
  921. };
  922. struct    Image    c9[] =
  923. {
  924.     { 0,0,64,48,1, blank,1,0, &c9[1] },
  925.     { TLNX,TLNY,6,7,1, black9,2,1, &c9[2] },
  926.     { BRNX,BRNY,6,7,1, iblack9,2,1, &c9[3] },
  927.     { P11X,P11Y,9,8,1, club,2,1, &c9[4] },
  928.     { P3X,P3Y,9,8,1, club,2,1, &c9[5] },
  929.     { P4X,P4Y,9,8,1, club,2,1, &c9[6] },
  930.     { P5X,P5Y,9,8,1, iclub,2,1, &c9[7] },
  931.     { P6X,P6Y,9,8,1, iclub,2,1, &c4[3] }
  932. };
  933. struct    Image    c10[] =
  934. {
  935.     { 0,0,64,48,1, blank,1,0, &c10[1] },
  936.     { TLNX-1,TLNY,9,7,1, black10,2,1, &c10[2] },
  937.     { BRNX,BRNY,9,7,1, iblack10,2,1, &c10[3] },
  938.     { P12X,P12Y,9,8,1, club,2,1, &c10[4] },
  939.     { P13X,P13Y,9,8,1, iclub,2,1, &c9[4] }
  940. };
  941. struct    Image    cj[] =
  942. {
  943.     { 0,0,64,48,1, blank,1,0, &cj[1] },
  944.     { TLNX,TLNY,7,7,1, blackj,2,1, &cj[2] },
  945.     { BRNX,BRNY,7,7,1, iblackj,2,1, &cj[3] },
  946.     { PICX,PICY,36,38,3, blackjpic,7,0, &ca[4]}
  947. };
  948. struct    Image    cq[] =
  949. {
  950.     { 0,0,64,48,1, blank,1,0, &cq[1] },
  951.     { TLNX,TLNY,7,7,1, blackq,2,1, &cq[2] },
  952.     { BRNX,BRNY,7,7,1, iblackq,2,1, &cq[3] },
  953.     { PICX,PICY,36,38,3, blackqpic,7,0, &ca[4]}
  954. };
  955. struct    Image    ck[] =
  956. {
  957.     { 0,0,64,48,1, blank,1,0, &ck[1] },
  958.     { TLNX,TLNY,6,7,1, blackk,2,1, &ck[2] },
  959.     { BRNX,BRNY,6,7,1, iblackk,2,1, &ck[3] },
  960.     { PICX,PICY,36,38,3, blackkpic,7,0, &ca[4]}
  961. };
  962.  
  963. /*spades*/
  964. struct    Image    sa[] =
  965. {
  966.     { 0,0,64,48,1, blank,1,0, &sa[1] },
  967.     { TLNX,TLNY,6,7,1, blacka,2,1, &sa[2] },
  968.     { BRNX,BRNY,6,7,1, iblacka,2,1, &sa[3] },
  969.     { P11X,P11Y,9,8,1, spade,2,1, &sa[4] },
  970.     { TLSX,TLSY,9,8,1, spade,2,1, &sa[5] },
  971.     { BRSX,BRSY,9,8,1, ispade,2,1, NULL }
  972. };
  973. struct    Image    s2[] =
  974. {
  975.     { 0,0,64,48,1, blank,1,0, &s2[1] },
  976.     { TLNX,TLNY,6,7,1, black2,2,1, &s2[2] },
  977.     { BRNX,BRNY,6,7,1, iblack2,2,1, &s2[3] },
  978.     { P14X,P14Y,9,8,1, spade,2,1, &s2[4] },
  979.     { P15X,P15Y,9,8,1, ispade,2,1, &sa[4] }
  980. };
  981. struct    Image    s3[] =
  982. {
  983.     { 0,0,64,48,1, blank,1,0, &s3[1] },
  984.     { TLNX,TLNY,6,7,1, black3,2,1, &s3[2] },
  985.     { BRNX,BRNY,6,7,1, iblack3,2,1, &s3[3] },
  986.     { P11X,P11Y,9,8,1, spade,2,1, &s2[3] }
  987. };
  988. struct    Image    s4[] =
  989. {
  990.     { 0,0,64,48,1, blank,1,0, &s4[1] },
  991.     { TLNX,TLNY,6,7,1, black4,2,1, &s4[2] },
  992.     { BRNX,BRNY,6,7,1, iblack4,2,1, &s4[3] },
  993.     { P1X,P1Y,9,8,1, spade,2,1, &s4[4] },
  994.     { P2X,P2Y,9,8,1, spade,2,1, &s4[5] },
  995.     { P7X,P7Y,9,8,1, ispade,2,1, &s4[6] },
  996.     { P8X,P8Y,9,8,1, ispade,2,1, &sa[4] }
  997. };
  998. struct    Image    s5[] =
  999. {
  1000.     { 0,0,64,48,1, blank,1,0, &s5[1] },
  1001.     { TLNX,TLNY,6,7,1, black5,2,1, &s5[2] },
  1002.     { BRNX,BRNY,6,7,1, iblack5,2,1, &s5[3] },
  1003.     { P11X,P11Y,9,8,1, spade,2,1, &s4[3] }
  1004. };
  1005. struct    Image    s6[] =
  1006. {
  1007.     { 0,0,64,48,1, blank,1,0, &s6[1] },
  1008.     { TLNX,TLNY,6,7,1, black6,2,1, &s6[2] },
  1009.     { BRNX,BRNY,6,7,1, iblack6,2,1, &s6[3] },
  1010.     { P9X,P9Y,9,8,1, spade,2,1, &s6[4] },
  1011.     { P10X,P10Y,9,8,1, spade,2,1, &s4[3] }
  1012. };
  1013. struct    Image     s7[] =
  1014. {
  1015.     { 0,0,64,48,1, blank,1,0, &s7[1] },
  1016.     { TLNX,TLNY,6,7,1, black7,2,1, &s7[2] },
  1017.     { BRNX,BRNY,6,7,1, iblack7,2,1, &s7[3] },
  1018.     { P13X,P13Y,9,8,1, ispade,2,1, &s6[3] }
  1019. };
  1020. struct    Image    s8[] =
  1021. {
  1022.     { 0,0,64,48,1, blank,1,0, &s8[1] },
  1023.     { TLNX,TLNY,6,7,1, black8,2,1, &s8[2] },
  1024.     { BRNX,BRNY,6,7,1, iblack8,2,1, &s8[3] },
  1025.     { P12X,P12Y,9,8,1, spade,2,1, &s7[3] }
  1026. };
  1027. struct    Image    s9[] =
  1028. {
  1029.     { 0,0,64,48,1, blank,1,0, &s9[1] },
  1030.     { TLNX,TLNY,6,7,1, black9,2,1, &s9[2] },
  1031.     { BRNX,BRNY,6,7,1, iblack9,2,1, &s9[3] },
  1032.     { P11X,P11Y,9,8,1, spade,2,1, &s9[4] },
  1033.     { P3X,P3Y,9,8,1, spade,2,1, &s9[5] },
  1034.     { P4X,P4Y,9,8,1, spade,2,1, &s9[6] },
  1035.     { P5X,P5Y,9,8,1, ispade,2,1, &s9[7] },
  1036.     { P6X,P6Y,9,8,1, ispade,2,1, &s4[3] }
  1037. };
  1038. struct    Image    s10[] =
  1039. {
  1040.     { 0,0,64,48,1, blank,1,0, &s10[1] },
  1041.     { TLNX-1,TLNY,9,7,1, black10,2,1, &s10[2] },
  1042.     { BRNX,BRNY,9,7,1, iblack10,2,1, &s10[3] },
  1043.     { P12X,P12Y,9,8,1, spade,2,1, &s10[4] },
  1044.     { P13X,P13Y,9,8,1, ispade,2,1, &s9[4] }
  1045. };
  1046. struct    Image    sj[] =
  1047. {
  1048.     { 0,0,64,48,1, blank,1,0, &sj[1] },
  1049.     { TLNX,TLNY,7,7,1, blackj,2,1, &sj[2] },
  1050.     { BRNX,BRNY,7,7,1, iblackj,2,1, &sj[3] },
  1051.     { PICX,PICY,36,38,3, blackjpic,7,0, &sa[4]}
  1052. };
  1053. struct    Image    sq[] =
  1054. {
  1055.     { 0,0,64,48,1, blank,1,0, &sq[1] },
  1056.     { TLNX,TLNY,7,7,1, blackq,2,1, &sq[2] },
  1057.     { BRNX,BRNY,7,7,1, iblackq,2,1, &sq[3] },
  1058.     { PICX,PICY,36,38,3, blackqpic, 7,0, &sa[4] }
  1059. };
  1060. struct    Image    sk[] =
  1061. {
  1062.     { 0,0,64,48,1, blank,1,0, &sk[1] },
  1063.     { TLNX,TLNY,6,7,1, blackk,2,1, &sk[2] },
  1064.     { BRNX,BRNY,6,7,1, iblackk,2,1, &sk[3] },
  1065.     { PICX,PICY,36,38,3, blackkpic, 7,0, &sa[4] }
  1066. };
  1067. /*edge image declarations*/
  1068. struct    Image    eda[] =
  1069. {
  1070.     { 0,0,21,48,2, edge,3,0, &eda[1] },
  1071.     { TLNX,TLNY,6,7,2, reda,3,0, &eda[2] },
  1072.     { TLSX,TLSY,7,8,2, diamond,3,0, NULL}
  1073. };
  1074. struct    Image    ed2[] =
  1075. {
  1076.     { 0,0,21,48,2, edge,3,0, &ed2[1]},
  1077.     { TLNX,TLNY,6,7,2, red2,3,0, &eda[2] }
  1078. };
  1079. struct    Image    ed3[] =
  1080. {
  1081.     { 0,0,21,48,2, edge,3,0, &ed3[1]},
  1082.     { TLNX,TLNY,6,7,2, red3,3,0, &eda[2] }
  1083. };
  1084. struct    Image    ed4[] =
  1085. {
  1086.     { 0,0,21,48,2, edge,3,0, &ed4[1]},
  1087.     { TLNX,TLNY,6,7,2, red4,3,0, &eda[2] }
  1088. };
  1089. struct    Image    ed5[] =
  1090. {
  1091.     { 0,0,21,48,2, edge,3,0, &ed5[1]},
  1092.     { TLNX,TLNY,6,7,2, red5,3,0, &eda[2] }
  1093. };
  1094. struct    Image    ed6[] =
  1095. {
  1096.     { 0,0,21,48,2, edge,3,0, &ed6[1]},
  1097.     { TLNX,TLNY,6,7,2, red6,3,0, &eda[2] }
  1098. };
  1099. struct    Image     ed7[] =
  1100. {
  1101.     { 0,0,21,48,2, edge,3,0, &ed7[1]},
  1102.     { TLNX,TLNY,6,7,2, red7,3,0, &eda[2] }
  1103. };
  1104. struct    Image    ed8[] =
  1105. {
  1106.     { 0,0,21,48,2, edge,3,0, &ed8[1]},
  1107.     { TLNX,TLNY,6,7,2, red8,3,0, &eda[2] }
  1108. };
  1109. struct    Image    ed9[] =
  1110. {
  1111.     { 0,0,21,48,2, edge,3,0, &ed9[1]},
  1112.     { TLNX,TLNY,6,7,2, red9,3,0, &eda[2] }
  1113. };
  1114. struct    Image    ed10[] =
  1115. {
  1116.     { 0,0,21,48,2, edge,3,0, &ed10[1]},
  1117.     { TLNX-1,TLNY,9,7,2, red10,3,0, &eda[2] }
  1118. };
  1119. struct    Image    edj[] =
  1120. {
  1121.     { 0,0,21,48,2, edge,3,0, &edj[1]},
  1122.     { TLNX,TLNY,7,7,2, redj,3,0, &eda[2] }
  1123. };
  1124. struct    Image    edq[] =
  1125. {
  1126.     { 0,0,21,48,2, edge,3,0, &edq[1]},
  1127.     { TLNX,TLNY,7,7,2, redq,3,0, &eda[2] }
  1128. };
  1129. struct    Image    edk[] =
  1130. {
  1131.     { 0,0,21,48,2, edge,3,0, &edk[1]},
  1132.     { TLNX,TLNY,6,7,2, redk,3,0, &eda[2] }
  1133. };
  1134.  
  1135. /*hearts*/
  1136. struct    Image    eha[] =
  1137. {
  1138.     { 0,0,21,48,2, edge,3,0, &eha[1]},
  1139.     { TLNX,TLNY,6,7,2, reda,3,0, &eha[2] },
  1140.     { TLSX,TLSY,9,8,2, heart,3,0, NULL }
  1141. };
  1142. struct    Image    eh2[] =
  1143. {
  1144.     { 0,0,21,48,2, edge,3,0, &eh2[1]},
  1145.     { TLNX,TLNY,6,7,2, red2,3,0, &eha[2] }
  1146. };
  1147. struct    Image    eh3[] =
  1148. {
  1149.     { 0,0,21,48,2, edge,3,0, &eh3[1]},
  1150.     { TLNX,TLNY,6,7,2, red3,3,0, &eha[2] }
  1151. };
  1152. struct    Image    eh4[] =
  1153. {
  1154.     { 0,0,21,48,2, edge,3,0, &eh4[1]},
  1155.     { TLNX,TLNY,6,7,2, red4,3,0, &eha[2] }
  1156. };
  1157. struct    Image    eh5[] =
  1158. {
  1159.     { 0,0,21,48,2, edge,3,0, &eh5[1]},
  1160.     { TLNX,TLNY,6,7,2, red5,3,0, &eha[2] },
  1161. };
  1162. struct    Image    eh6[] =
  1163. {
  1164.     { 0,0,21,48,2, edge,3,0, &eh6[1]},
  1165.     { TLNX,TLNY,6,7,2, red6,3,0, &eha[2] }
  1166. };
  1167. struct    Image     eh7[] =
  1168. {
  1169.     { 0,0,21,48,2, edge,3,0, &eh7[1]},
  1170.     { TLNX,TLNY,6,7,2, red7,3,0, &eha[2] }
  1171. };
  1172. struct    Image    eh8[] =
  1173. {
  1174.     { 0,0,21,48,2, edge,3,0, &eh8[1]},
  1175.     { TLNX,TLNY,6,7,2, red8,3,0, &eha[2] }
  1176. };
  1177. struct    Image    eh9[] =
  1178. {
  1179.     { 0,0,21,48,2, edge,3,0, &eh9[1]},
  1180.     { TLNX,TLNY,6,7,2, red9,3,0, &eha[2] }
  1181. };
  1182. struct    Image    eh10[] =
  1183. {
  1184.     { 0,0,21,48,2, edge,3,0, &eh10[1]},
  1185.     { TLNX-1,TLNY,9,7,2, red10,3,0, &eha[2] }
  1186. };
  1187. struct    Image    ehj[] =
  1188. {
  1189.     { 0,0,21,48,2, edge,3,0, &ehj[1]},
  1190.     { TLNX,TLNY,7,7,2, redj,3,0, &eha[2] }
  1191. };
  1192. struct    Image    ehq[] =
  1193. {
  1194.     { 0,0,21,48,2, edge,3,0, &ehq[1]},
  1195.     { TLNX,TLNY,7,7,2, redq,3,0, &eha[2] }
  1196. };
  1197. struct    Image    ehk[] =
  1198. {
  1199.     { 0,0,21,48,2, edge,3,0, &ehk[1]},
  1200.     { TLNX,TLNY,6,7,2, redk,3,0, &eha[2] }
  1201. };
  1202. /*club*/
  1203.  
  1204. struct    Image    eca[] =
  1205. {
  1206.     { 0,0,21,48,2, edge,3,1, &eca[1]},
  1207.     { TLNX,TLNY,6,7,1, blacka,2,1, &eca[2] },
  1208.     { TLSX,TLSY,9,8,1, club,2,1, NULL }
  1209. };
  1210. struct    Image    ec2[] =
  1211. {
  1212.     { 0,0,21,48,2, edge,3,0, &ec2[1]},
  1213.     { TLNX,TLNY,6,7,1, black2,2,1, &eca[2] }
  1214. };
  1215. struct    Image    ec3[] =
  1216. {
  1217.     { 0,0,21,48,2, edge,3,0, &ec3[1]},
  1218.     { TLNX,TLNY,6,7,1, black3,2,1, &eca[2] }
  1219. };
  1220. struct    Image    ec4[] =
  1221. {
  1222.     { 0,0,21,48,2, edge,3,0, &ec4[1]},
  1223.     { TLNX,TLNY,6,7,1, black4,2,1, &eca[2] }
  1224. };
  1225. struct    Image    ec5[] =
  1226. {
  1227.     { 0,0,21,48,2, edge,3,0, &ec5[1]},
  1228.     { TLNX,TLNY,6,7,1, black5,2,1, &eca[2] },
  1229. };
  1230. struct    Image    ec6[] =
  1231. {
  1232.     { 0,0,21,48,2, edge,3,0, &ec6[1]},
  1233.     { TLNX,TLNY,6,7,1, black6,2,1, &eca[2] }
  1234. };
  1235. struct    Image     ec7[] =
  1236. {
  1237.     { 0,0,21,48,2, edge,3,0, &ec7[1]},
  1238.     { TLNX,TLNY,6,7,1, black7,2,1, &eca[2] }
  1239. };
  1240. struct    Image    ec8[] =
  1241. {
  1242.     { 0,0,21,48,2, edge,3,0, &ec8[1]},
  1243.     { TLNX,TLNY,6,7,1, black8,2,1, &eca[2] }
  1244. };
  1245. struct    Image    ec9[] =
  1246. {
  1247.     { 0,0,21,48,2, edge,3,0, &ec9[1]},
  1248.     { TLNX,TLNY,6,7,1, black9,2,1, &eca[2] }
  1249. };
  1250. struct    Image    ec10[] =
  1251. {
  1252.     { 0,0,21,48,2, edge,3,0, &ec10[1]},
  1253.     { TLNX-1,TLNY,9,7,1, black10,2,1, &eca[2] }
  1254. };
  1255. struct    Image    ecj[] =
  1256. {
  1257.     { 0,0,21,48,2, edge,3,0, &ecj[1]},
  1258.     { TLNX,TLNY,7,7,1, blackj,2,1, &eca[2] }
  1259. };
  1260. struct    Image    ecq[] =
  1261. {
  1262.     { 0,0,21,48,2, edge,3,0, &ecq[1]},
  1263.     { TLNX,TLNY,7,7,1, blackq,2,1, &eca[2] }
  1264. };
  1265. struct    Image    eck[] =
  1266. {
  1267.     { 0,0,21,48,2, edge,3,0, &eck[1]},
  1268.     { TLNX,TLNY,6,7,1, blackk,2,1, &eca[2] }
  1269. };
  1270.  
  1271. /* spades */
  1272.  
  1273. struct    Image    esa[] =
  1274. {
  1275.     { 0,0,21,48,2, edge,3,0, &esa[1]},
  1276.     { TLNX,TLNY,6,7,1, blacka,2,1, &esa[2] },
  1277.     { TLSX,TLSY,9,8,1, spade,2,1, NULL }
  1278. };
  1279. struct    Image    es2[] =
  1280. {
  1281.     { 0,0,21,48,2, edge,3,0, &es2[1]},
  1282.     { TLNX,TLNY,6,7,1, black2,2,1, &esa[2] }
  1283. };
  1284. struct    Image    es3[] =
  1285. {
  1286.     { 0,0,21,48,2, edge,3,0, &es3[1]},
  1287.     { TLNX,TLNY,6,7,1, black3,2,1, &esa[2] }
  1288. };
  1289. struct    Image    es4[] =
  1290. {
  1291.     { 0,0,21,48,2, edge,3,0, &es4[1]},
  1292.     { TLNX,TLNY,6,7,1, black4,2,1, &esa[2] }
  1293. };
  1294. struct    Image    es5[] =
  1295. {
  1296.     { 0,0,21,48,2, edge,3,0, &es5[1]},
  1297.     { TLNX,TLNY,6,7,1, black5,2,1, &esa[2] },
  1298. };
  1299. struct    Image    es6[] =
  1300. {
  1301.     { 0,0,21,48,2, edge,3,0, &es6[1]},
  1302.     { TLNX,TLNY,6,7,1, black6,2,1, &esa[2] }
  1303. };
  1304. struct    Image     es7[] =
  1305. {
  1306.     { 0,0,21,48,2, edge,3,0, &es7[1]},
  1307.     { TLNX,TLNY,6,7,1, black7,2,1, &esa[2] }
  1308. };
  1309. struct    Image    es8[] =
  1310. {
  1311.     { 0,0,21,48,2, edge,3,0, &es8[1]},
  1312.     { TLNX,TLNY,6,7,1, black8,2,1, &esa[2] }
  1313. };
  1314. struct    Image    es9[] =
  1315. {
  1316.     { 0,0,21,48,2, edge,3,0, &es9[1]},
  1317.     { TLNX,TLNY,6,7,1, black9,2,1, &esa[2] }
  1318. };
  1319. struct    Image    es10[] =
  1320. {
  1321.     { 0,0,21,48,2, edge,3,0, &es10[1]},
  1322.     { TLNX-1,TLNY,9,7,1, black10,2,1, &esa[2] }
  1323. };
  1324. struct    Image    esj[] =
  1325. {
  1326.     { 0,0,21,48,2, edge,3,0, &esj[1]},
  1327.     { TLNX,TLNY,7,7,1, blackj,2,1, &esa[2] }
  1328. };
  1329. struct    Image    esq[] =
  1330. {
  1331.     { 0,0,21,48,2, edge,3,0, &esq[1]},
  1332.     { TLNX,TLNY,7,7,1, blackq,2,1, &esa[2] }
  1333. };
  1334. struct    Image    esk[] =
  1335. {
  1336.     { 0,0,21,48,2, edge,3,0, &esk[1]},
  1337.     { TLNX,TLNY,6,7,1, blackk,2,1, &esa[2] }
  1338. };
  1339.  
  1340. struct    Image    backpatim = { 7,0,50,47,3, backpat, 7,0, NULL};
  1341. struct    Image    rvscard ={ 0,0,64,48,1, blank, 1,0, &backpatim };
  1342. struct    Image    eback ={ 7,4,10,40,2, ebackpat, 3,0, NULL};
  1343. struct    Image    rvsedge ={ 0,0,21,48,2, edge, 3,0, &eback };
  1344. struct    Image    *packim[][53] =
  1345. {
  1346.     { /*card faces*/
  1347.         &rvscard,
  1348.         da,d2,d3,d4,d5,d6,d7,d8,d9,d10,dj,dq,dk,
  1349.         ha,h2,h3,h4,h5,h6,h7,h8,h9,h10,hj,hq,hk,
  1350.         ca,c2,c3,c4,c5,c6,c7,c8,c9,c10,cj,cq,ck,
  1351.         sa,s2,s3,s4,s5,s6,s7,s8,s9,s10,sj,sq,sk
  1352.     },
  1353.     { /*card edges*/
  1354.         &rvsedge,
  1355.         eda,ed2,ed3,ed4,ed5,ed6,ed7,ed8,ed9,ed10,edj,edq,edk,
  1356.         eha,eh2,eh3,eh4,eh5,eh6,eh7,eh8,eh9,eh10,ehj,ehq,ehk,
  1357.         eca,ec2,ec3,ec4,ec5,ec6,ec7,ec8,ec9,ec10,ecj,ecq,eck,
  1358.         esa,es2,es3,es4,es5,es6,es7,es8,es9,es10,esj,esq,esk
  1359.     }
  1360. };
  1361.